package com.fg.cloud.common.construction;

import java.util.List;

/**
 * Description:返回包装的Select：key-value
 * @author around
 * @date 2017年8月21日下午12:55:45
 */
public class ResultSelect {

	private String label;
	
	private List<Select> value;
	
	public ResultSelect() {}

	public ResultSelect(String label) {
		super();
		this.label = label;
	}
	
	public ResultSelect(String label, List<Select> value) {
		super();
		this.label = label;
		this.value = value;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public List<Select> getValue() {
		return value;
	}

	public void setValue(List<Select> value) {
		this.value = value;
	}
	
	@Override
	public boolean equals(Object obj) {
		return this.getLabel().equals(((ResultSelect)obj).getLabel());
	}

	@Override
	public String toString() {
		return "ResultSelect [label=" + label + ", value=" + value + "]";
	}
	
	
}
